<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>辅助插件 > 友情链接管理</div>
    <form method="post" action="./">
		<div class="rightbody f">
			<div class="rightbodycontent">
				<table class="tools">
			        <tr>
			            <td>
							类型：
		                    <select name="friendlinktypeid" onchange="getform(this).submit()">
		                        <option value="0">--全部--</option>
		                        <#list friendlinktypes as friendlinktype>
		                            <option value="${friendlinktype.id}"<#if friendlinktype.id == friendlinktypeid> selected</#if> />${friendlinktype.name}</option>
		                        </#list>
		                    </select>
		                    →
		                    <a href="../friendlinktype/" class="linkbtn center">设置类型</a>
		                </td>
			            <td align="right">
			                <a href="edit?friendlinktypeid=${friendlinktypeid}" class="linkbtn insert">新建友情链接</a>
			            </td>
			        </tr>
			    </table>
			    <table cellspacing="1" cellpadding="4" class="tablelist">
			        <tr>
			            <th>名称</th>
		                <th>类型</th>
		                <th>URL地址</th>
		                <th>排序</th>
		                <th>操作</th>
			        </tr>
			        <#list friendlinks as friendlink>
			        	<tr<#if friendlink_index % 2 == 1> class="splittr"</#if>>
			        		<td align="center">${friendlink.name}</td>
			                <td align="center">${friendlink.friendlinkType.name}</td>
			                <td align="center">${friendlink.url}</td>
			                <td align="center">${friendlink.sort}</td>
			                <td align="center">
			                    <a href="edit?friendlinktypeid=${friendlinktypeid}&friendlinkid=${friendlink.id}" class="linkbtn update noborder">修改</a>
			                    <a href="delete?friendlinktypeid=${friendlinktypeid}&friendlinkid=${friendlink.id}" class="linkbtn delete noborder" onclick="return confirm('确定删除吗？')">删除</a>
			                </td>
			        	</tr>
			        </#list>
			    </table>
		    </div>
	    </div>
    </form>
</body>
</html>